from coffeetalk.protocol.iotypes import defaulttype

class Float(defaulttype.DefaultType):
    
    _type = '[Float]'
    value = 0.0
    def __init__(self,name=None,value=None):
        defaulttype.DefaultType.__init__(self,name=name)
        self.value = float(value)

if __name__ == '__main__':
    
    f = Float(name='Mike',value=1.0)
    
    print f